#pragma once

/*
	Telegram.
	Classic event. To send a message from entity to entity at the desired time. 
	int msg is usually defined in an external enum.
*/

class Telegram
{

public:
	Telegram(int sender, int receiver, int msg, float time = 0.f, const void* param = 0);

	~Telegram(void);

	bool operator<(const Telegram& t1) const
	{ 
		return  (DispatchTime < t1.DispatchTime);
	}

	int Sender;
	int Receiver;
	int Msg;
	float DispatchTime;
	const void* Param;

};


